package com.lckoo.mail.service;

import com.lckoo.mail.receiver.MailHandler;
import com.lckoo.mail.receiver.MailInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 业务处理的方法
 */
@Slf4j
@Service
public class MyService implements MailHandler {
    @Override
    public boolean doBusiness(MailInfo mailInfo) {
        log.info("新邮件通知:{}", mailInfo.toString());
        return true;
    }
}
